import {request} from "../../utils/request"
import type {teacherleaveResponseType,leavetypeResponseType,justpersonresponseType} from "../../modal/wrd/leave"
// import type {loginResponseType,userFindType,userFindAllType} from "../../modal/user";

// //学生请假列表
// export let studentleave= (params:object)=>{
// 	return request.postRequest("SchoolSys/sloa/searchSloa",params)
// }
//员工请假列表
export let teacherleave= (params:object)=>{
	return request.postRequest<teacherleaveResponseType>("SchoolSys/uloa/searchUloa",params)
}

// //学生请假申请
// export let studentleaveapply= (params:object)=>{
// 	return request.postRequest("SchoolSys/sloa/add",params)
// }

//员工请假申请
export let teacherleaveapply= (params:object)=>{
	return request.postRequest<undefined>("SchoolSys/uloa/add",params)
}

//查询审批人
export let justperson= (params:object)=>{
	return request.postRequest<justpersonresponseType>("SchoolSys/user/findPasser",params)
}
//查询请假分类
export let leaveType=()=>{
	return request.postRequest<leavetypeResponseType>("SchoolSys/loaType/findAll")
}
//删除请假申请
export let delateleave=(params:object)=>{
	return request.postRequest("SchoolSys/uloa/delete",params)
}
//申请详情
export let detailleave=(params:object)=>{
	return request.postRequest("SchoolSys/uloa/selectOneById",params)
}
//请假修改uloa/update
export let updataleave=(params:object)=>{
	return request.postRequest("SchoolSys/uloa/update",params)
}

